apache env vars - best practices

apache env vars - best practices

am 19.10.2009 20:20:48 von aurfalien

Hi all,

I've been setting custom env vars for Apache 1 of 2 ways;

1 - Changing the passwd file so Apache has a shell and loading a
custom .bashrc file.

2 - Using the SetEnv directive in my httpd.conf file.

I'm crazy about neither one as they both have limitations;

1 - I don't like giving Apache its own shell.

2 - The SetEnv directive only takes 2 args so if I have a var with
multiple values like a path, it won't work.

What's the cleanest way to set complex env vars for Apache?



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache env vars - best practices

am 19.10.2009 20:32:33 von Dan Poirier

aurfalien@gmail.com writes:

> I've been setting custom env vars for Apache 1 of 2 ways;
>...
> What's the cleanest way to set complex env vars for Apache?

Edit bin/envvars.

--
Dan Poirier


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: apache env vars - best practices

am 19.10.2009 20:39:45 von aurfalien

>> I've been setting custom env vars for Apache 1 of 2 ways;
>> ...
>> What's the cleanest way to set complex env vars for Apache?
>
> Edit bin/envvars.

Hi Dan

Thanks for the reply.

I've done a search and no were on my Centos box do I see bin/envvars.

Its this because I have a distro'd installed version of APACHE vs from
source?




>
>
> --
> Dan Poirier
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache env vars - best practices

am 19.10.2009 20:44:11 von Dan Poirier

aurfalien@gmail.com writes:

>>> I've been setting custom env vars for Apache 1 of 2 ways;
>>> ...
>>> What's the cleanest way to set complex env vars for Apache?
>>
>> Edit bin/envvars.
> I've done a search and no were on my Centos box do I see bin/envvars.
>
> Its this because I have a distro'd installed version of APACHE vs from
> source?

Could be. Look in apachectl and see if it looks for an envvars file and
if so, where it looks for it. If so, you might be able to just create
one there.

--
Dan Poirier


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: apache env vars - best practices

am 19.10.2009 20:46:20 von Eric Covener

> I've done a search and no were on my Centos box do I see bin/envvars.
>
> Its this because I have a distro'd installed version of APACHE vs from
> source?
>

/etc/sysconfig/httpd sourced by apachectl?

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: apache env vars - best practices

am 20.10.2009 01:45:03 von Norman Peelman

aurfalien@gmail.com wrote:
>>> I've been setting custom env vars for Apache 1 of 2 ways;
>>> ...
>>> What's the cleanest way to set complex env vars for Apache?
>>
>> Edit bin/envvars.
>
> Hi Dan
>
> Thanks for the reply.
>
> I've done a search and no were on my Centos box do I see bin/envvars.
>
> Its this because I have a distro'd installed version of APACHE vs from
> source?
>
>
>
>
In ubuntu (debian)

/etc/apache2/envvars


--
Norman Registered Linux user #461062 -Have you been to www.apache.org yet?-

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: apache env vars - best practices

am 21.10.2009 01:03:49 von Stephen Love

----__JWM__J387f.798eS.18e9M
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Type: text/plain; charset=windows-1252

I found references TO ApacheCtl, as in documentation, but did not find t=
he actual script itself... NOW what?

See us online at http://www.LOVEnCompany.com.

---------- Original Message ----------
From: Dan Poirier
To: users@httpd.apache.org
Subject: [users@httpd] Re: apache env vars - best practices
Date: Mon, 19 Oct 2009 14:44:11 -0400

aurfalien@gmail.com writes:

>>> I've been setting custom env vars for Apache 1 of 2 ways;
>>> ...
>>> What's the cleanest way to set complex env vars for Apache?
>>
>> Edit bin/envvars.
> I've done a search and no were on my Centos box do I see bin/envvars.
>
> Its this because I have a distro'd installed version of APACHE vs from=

> source?

Could be. Look in apachectl and see if it looks for an envvars file and=

if so, where it looks for it. If so, you might be able to just create
one there.

-- =

Dan Poirier


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Projec=
t.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

____________________________________________________________
Best Weight Loss Program - Click Here!
http://thirdpartyoffers.juno.com/TGL2131/fc/BLSrjnsEGrEGqnP0 c1WYRmGEx3hp=
spFU19RvCaaq3Vp7BtZromDlVRgCASU/
----__JWM__J387f.798eS.18e9M
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Type: text/html; charset=windows-1252

I found references TO ApacheCtl, as in documentation, but did not =
find the actual script itself... NOW what?

See us online at http:=
//www.LOVEnCompany.com.

---------- Original Message ---------- >From: Dan Poirier <poirier@pobox.com>
To: users@httpd.apache.o=
rg
Subject: [users@httpd]  Re: apache env vars - best practices<=
BR>Date: Mon, 19 Oct 2009 14:44:11 -0400

aurfalien@gmail.com writ=
es:

>>> I've been setting custom env vars for Apache 1 o=
f 2 ways;
>>> ...
>>> What's the cleanest way to=
set complex env vars for Apache?
>>
>> Edit bin/envva=
rs.
> I've done a search and no were on my Centos box do I see bin=
/envvars.
>
> Its this because I have a distro'd installed v=
ersion of APACHE vs from
> source?

Could be.  Look in =
apachectl and see if it looks for an envvars file and
if so, where it=
looks for it.  If so, you might be able to just create
one ther=
e.

--
Dan Poirier <poirier@pobox.com>


------=
------------------------------------------------------------ ---
The o=
fficial User-To-User support forum of the Apache HTTP Server Project. >See <URL:http://httpd.apache.org/userslist.html> for more info. R>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
 &n=
bsp;"   from the digest: users-digest-unsubscribe@httpd.apache=
..org
For additional commands, e-mail: users-help@httpd.apache.org
=





______________________=
______________________________________

P0c1WYRmGEx3hpspFU19RvCaaq3Vp7BtZromDlVRgCASU/ target=3D"_blank">Best We=
ight Loss Program - Click Here!


----__JWM__J387f.798eS.18e9M--